import pickle

with open('results.pcl', 'rb') as rh:
    RESULTS = pickle.load(rh)

for res in RESULTS:
  for prob in res['results']:
    res['results'][prob]['solved'] = res['results'][prob]['score'] == 100

with open('results.pcl', 'wb') as rh:
  pickle.dump(RESULTS, rh, pickle.HIGHEST_PROTOCOL)
